package com.first.homeqian.controller;

import com.first.common.vo.Result;
import com.first.homeqian.service.ArticleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * @program: first-project
 * @description:
 * @author: 闫锦超
 * @create: 2023-06-02 16:25
 **/
@RestController
@RequestMapping("home/qian/article")
@Api(tags = "文章内容显示")
public class ArticleController {
    @Autowired
    private ArticleService articleService;

    @PostMapping("/getAllQianArticle/{id}")
    @ApiOperation(value = "获取文章信息")
    public Result getAllQianArticle(@PathVariable String id){
        return articleService.getAllQianArticle(id);
    }

}
